/**
 * Created by leiweibo on 7/5/15.
 */

var app = angular.module('vistrackservice', []);

app.factory('VistrackService', function($http, BaseService) {
  return {
    create:  function(data, success, error) {
      $http.post(BaseService.baseUrl + '/vistrack/create', data).success(success).error(error);
    },
    list: function(patient, success) {
      $http.get(BaseService.baseUrl + '/vistrack/list?id='+patient).success(success);
    }
  }
});
